package com.threefivework.mymall.dao.mapper;

import com.threefivework.mymall.model.domain.Item;

import java.util.List;

/**
 * descripiton: 商品mapper
 *
 * @author: kinson(2219945910@qq.com)
 * @date: 2018/6/29
 * @time: 21:21
 * @modifier:
 * @since:
 */
public interface ItemMapper {

    List<Item> listItem();

    Integer insert(final Item item);

    Item getItemByPK(final Integer id);

    void delete(final Integer id);

    void update(final Item item);

    /**
     * 下架商品
     * @param id
     */
    void delistItem(final Integer id);
}
